package com.eshop.modules.shop.service.dto;

import java.util.Date;
import java.io.Serializable;

public class MaterialGroupDto implements Serializable
{
    private String id;
    private Date createTime;
    private String createId;
    private String name;
    
    public String getId() {
        return this.id;
    }
    
    public Date getCreateTime() {
        return this.createTime;
    }
    
    public String getCreateId() {
        return this.createId;
    }
    
    public String getName() {
        return this.name;
    }
    
    public void setId(final String id) {
        this.id = id;
    }
    
    public void setCreateTime(final Date createTime) {
        this.createTime = createTime;
    }
    
    public void setCreateId(final String createId) {
        this.createId = createId;
    }
    
    public void setName(final String name) {
        this.name = name;
    }
    
    @Override
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof MaterialGroupDto)) {
            return false;
        }
        final MaterialGroupDto other = (MaterialGroupDto)o;
        if (!other.canEqual(this)) {
            return false;
        }
        final Object this$id = this.getId();
        final Object other$id = other.getId();
        Label_0065: {
            if (this$id == null) {
                if (other$id == null) {
                    break Label_0065;
                }
            }
            else if (this$id.equals(other$id)) {
                break Label_0065;
            }
            return false;
        }
        final Object this$createTime = this.getCreateTime();
        final Object other$createTime = other.getCreateTime();
        Label_0102: {
            if (this$createTime == null) {
                if (other$createTime == null) {
                    break Label_0102;
                }
            }
            else if (this$createTime.equals(other$createTime)) {
                break Label_0102;
            }
            return false;
        }
        final Object this$createId = this.getCreateId();
        final Object other$createId = other.getCreateId();
        Label_0139: {
            if (this$createId == null) {
                if (other$createId == null) {
                    break Label_0139;
                }
            }
            else if (this$createId.equals(other$createId)) {
                break Label_0139;
            }
            return false;
        }
        final Object this$name = this.getName();
        final Object other$name = other.getName();
        if (this$name == null) {
            if (other$name == null) {
                return true;
            }
        }
        else if (this$name.equals(other$name)) {
            return true;
        }
        return false;
    }
    
    protected boolean canEqual(final Object other) {
        return other instanceof MaterialGroupDto;
    }
    
    @Override
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $id = this.getId();
        result = result * 59 + (($id == null) ? 43 : $id.hashCode());
        final Object $createTime = this.getCreateTime();
        result = result * 59 + (($createTime == null) ? 43 : $createTime.hashCode());
        final Object $createId = this.getCreateId();
        result = result * 59 + (($createId == null) ? 43 : $createId.hashCode());
        final Object $name = this.getName();
        result = result * 59 + (($name == null) ? 43 : $name.hashCode());
        return result;
    }
    
    @Override
    public String toString() {
        return "MaterialGroupDto(id=" + this.getId() + ", createTime=" + this.getCreateTime() + ", createId=" + this.getCreateId() + ", name=" + this.getName() + ")";
    }
}
